CREATE PROCEDURE [dbo].[SessionGet]
@Id		    UNIQUEIDENTIFIER 
AS
SELECT		*
FROM		Session
WHERE 
		 (@Id IS NULL OR [Id] = @Id)

RETURN @@ROWCOUNT
